<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/9
 * Time: 17:04
 */
header('Content-type:text/html;charset=utf8');
$url = 'http://ip.meiboxiu.cn/sphone?';
$agent = 'SFXOUiQdAVWfodSU2qUrxA==';
$params = array(
    'num' => 15705101211,
    'agent' => $agent
);
$paramstring = http_build_query($params);
$content = file_get_contents($url.$paramstring);
$result = json_decode($content, true);

echo $result['data']['province'].'省'.$result['data']['city'];

